using System;
using FytSoa.Common.Extensions;
using FytSoa.Common.Utils;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace FytSoa.Application.Sys
{
    /// <summary>
    /// 资源栏目表 
    /// </summary>
    public partial class SysFileColumnDto
    {
        public SysFileColumnDto()
        {
            Id = Unique.Id();
        }
        
        /// <summary>
        /// 唯一编号
        /// </summary>
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long Id { get; set; }

        /// <summary>
        /// 父编号
        /// </summary>
        [Required]
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long ParentId { get; set; }

        /// <summary>
        /// 父编号集合
        /// </summary>
        [Required]
        [StringLength(128)]
        public string ParentIdList { get; set; }

        /// <summary>
        /// 类型 图片类型分类 0=本地 1=云端
        /// </summary>
        [Required]
        public int Type { get; set; } = 0;

        /// <summary>
        /// 级别
        /// </summary>
        [Required]
        public int Layer { get; set; } = 1;

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 栏目名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 英文名称 文件夹名称
        /// </summary>
        [Required]
        [StringLength(128)]
        public string EnName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 添加人
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }


    }
}